package online.misscl.lsy.entity.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * project name: IntelliJ IDEA
 * Date: 2023/3/18 22:59
 *
 * @PackageName: online.misscl.lsy.entity.dto
 * @ClassName: VaccineInfoAddDTO
 * @Author: code mover
 * @Version:
 * @Description:
 */
@Data
public class VaccineInfoUpdateDTO {


    @ApiModelProperty("疫苗id")
    @TableId(value = "vaccine_id", type = IdType.AUTO)
    @NotBlank(message = "疫苗id不能为空")
    private Integer vaccineId;

    @ApiModelProperty("疫苗名称")
    @TableField("vaccine_name")
    @NotBlank(message = "疫苗名称不能为空")
    private String vaccineName;

    @ApiModelProperty("价格")
    @TableField("vaccine_price")
    @NotBlank(message = "价格不能为空")
    private Double vaccinePrice;

    @ApiModelProperty("图片")
    @TableField("vaccine_img")
    @NotBlank(message = "图片不能为空")
    private String vaccineImg;

    @ApiModelProperty("生产厂家")
    @TableField("vaccine_factory")
    @NotBlank(message = "生产厂家不能为空")
    private String vaccineFactory;

    @ApiModelProperty("接种类别")
    @NotBlank(message = "接种类别不能为空")
    @TableField("vaccine_type")
    private String vaccineType;

    @ApiModelProperty("疫苗介绍")
    @NotBlank(message = "疫苗介绍不能为空")
    @TableField("vaccine_intro")
    private String vaccineIntro;

    @ApiModelProperty("适合年龄")
    @NotBlank(message = "适合年龄不能为空")
    @TableField("suitable_age")
    private String suitableAge;

}
